import './Person.dart';

void main() {
    Person p = new Person('jack', 22);
    Person p2 = new Person.setInfo('rose', 21);
    p.printUserInfo();
    p2.printUserInfo();
    Person.printType();

    if(p is Person){
        print("是Person对象");
    }

    var sp;
    sp = "";
    sp = new Person("dont", 24);
    (sp as Person).printUserInfo(); //转换成Person对象调用成员方法
}
